<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="Creating a Certificate Chain File">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="EN-US_TOPIC_0000001839246277">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>Creating a Certificate Chain File</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="EN-US_TOPIC_0000001839246277"></a><a name="EN-US_TOPIC_0000001839246277"></a>
  <h1 class="topictitle1">Creating a Certificate Chain File</h1>
  <div>
   <p>If the CA certificate is not a root CA certificate, the imported CA certificate must be a complete certificate chain file. This topic describes how to create a certificate chain file.</p>
   <div class="section">
    <h4 class="sectiontitle">Prerequisites</h4>
    <p>You have obtained the CA certificates of all levels.</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">Procedure</h4>
    <p>Assume that the Google Chrome browser is used.</p>
    <ol>
     <li><span>Open Google Chrome, click <span><img src="en-us_image_0000001839166345.png"></span>, and choose <span class="uicontrol"><b>Connection is secure</b></span>.</span></li>
     <li><span>Click <span class="uicontrol"><b>Certificate is valid</b></span>.</span></li>
     <li><span>In the displayed dialog box, click the <strong>Details</strong> tab.</span></li>
     <li><span>Select a certificate that is not at the last layer in <strong>Certificate Hierarchy</strong> and click <strong>Export</strong>.</span></li>
     <li><span>Create a text file, such as <strong>certificate.txt</strong>.</span></li>
     <li><span>Open the certificate files in sequence of root certificate, level-2 certificate, level-3 certificate, and so on. Then, copy the content (from "-----BEGIN CERTIFICATE-----" to "-----END CERTIFICATE-----") of the certificate files in sequence to the newly created text file.</span><p></p><p>The following figure uses a level-3 CA certificate as an example to show the content of a complete certificate chain file.</p> <p><span><img src="en-us_image_0000001792367230.png"></span></p> <p></p></li>
     <li><span>Save the file and change the file name extension to <strong>pem</strong>.</span></li>
    </ol>
   </div>
  </div>
 </body>
</html>